<h2>Edit Date format</h2>
<div class="content-inner">
  <?php
  	$sort_date_format = $setting['sort_date_format'];
  	$medium_date_format = $setting['medium_date_format'];
  	$long_date_format = $setting['long_date_format'];
  ?>
  <form action="<?=site_url(array('c' => 'cms_settings', 'm' => 'edit_date_format', 'id' => $setting['id']))?>" enctype="multipart/form-data" method="post">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table">
    <tbody>
	  <tr>
	  	<td>&nbsp;</td>
        <td align="left">A user-defined date format. See the <a href="http://php.net/manual/function.date.php">PHP manual</a> for available options.</td>
      </tr>
      <tr>
        <th>Short date format:</th>
        <td>
        	<input type="text" name="item_sort_date_format" value="<?=$sort_date_format?>" size="20" maxlength="20"/>
        	<small>The short format of date display.</small>
        </td>
      </tr>
      <tr>
        <th>Medium date format:</th>
        <td>
        	<input type="text" name="item_medium_date_format" value="<?=$medium_date_format?>" size="20" maxlength="20"/>
        	<small>The medium sized date display.</small>
        </td>
      </tr>
      <tr>
        <th>Long  date format:</th>
        <td>
        	<input type="text" name="item_long_date_format" value="<?=$long_date_format?>" size="20" maxlength="20"/>
        	<small>Longer date format used for detailed display.</small>
        </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>
          <br/>
          <input type="button" class="input-button" onClick="javascript:history.back();" value="Cancel">
          <input name="Submit" type="submit" class="ins" value="Save"></td>
      </tr>
    </tbody>
  </table>
  </form>
</div>